package com.bw.demo.adapter

import com.bumptech.glide.Glide
import com.bw.demo.R
import com.bw.demo.entity.BaseVideoRepo
import com.bw.demo.entity.VideoEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class FangAdapter(list: MutableList<VideoEntity>):BaseQuickAdapter<VideoEntity,BaseViewHolder>(R.layout.item_fangyingting,list){
    override fun convert(holder: BaseViewHolder, item: VideoEntity) {
        Glide.with(context).load(item.videomainimag).into(holder.getView(R.id.iv_fangying1))
        holder.setText(R.id.tv_user,item.name)
        holder.setText(R.id.tv_desc,item.description)
    }
}